from flask import Flask

def create_app():
    app = Flask(__name__)

    from .main import main as main_bp
    app.register_blueprint(main_bp)

    from .admin import admin as admin_bp
    app.register_blueprint(admin_bp,url_prefix='/admin')

    from .api import api_users as apiUsr_bp
    app.register_blueprint(apiUsr_bp,url_prefix='/api')

    from .api import api_article as apiArt_bp
    app.register_blueprint(apiArt_bp,url_prefix='/api')

    return app

